<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>随机学生点名系统</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <!-- <h1>随机学生点名系统</h1>
  <input type="file" id="fileInput" accept=".txt">
  <button id="startButton" disabled>开始点名</button>
  <button id="stopButton" disabled>停止点名</button>
  <p id="result">请导入学生名单</p>
  <div id="calledStudents">已点名学生：</div>
  <!-- 新增用于显示倒计时的元素 -->
  <!-- <span id="countdown"></span> -->
  <div id="app">
    <h1>随机学生点名系统</h1>
    <input type="file" @change="handleFileChange" accept=".txt">
    <button :disabled="!canStart" @click="startRollCall">开始点名</button>
    <button :disabled="canStart" @click="stopRollCall">停止点名</button>
    <p>{{ result }}</p>
    <div>已点名学生：{{ calledStudents.join(', ') }}</div>
    <span>{{ countdown > 0? `倒计时: ${countdown} 秒` : '' }}</span>
  </div>
</body>
<!-- <script src="script.js"></script> -->
<!-- 引入 Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script src="script02.js"></script>
</html>